.imageEditPage {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: rgb(7, 7, 7);
  display: flex;
  flex-direction: column;
  .mainSection{
    width: 100%;
    padding-bottom: 10px;
    flex: 1;
    overflow: auto;
    display: flex;
    flex-direction: column;
    .mainContent{
      width: 100%;
      flex: 1;
      display: flex;
      .resultsSection{
        display: flex;
        flex:1;
        overflow:hidden;
        flex-direction: column
      }
    }
    .timelineWrap {
      height: 160px;
      width: 100%;
      -webkit-user-select: none;
      user-select: none;
    
      :global(.timeline-editor) {
        width: 100%;
        height: 100%;
      }
      :global(.ReactVirtualized__Grid){
        overflow: auto hidden !important;
      }
    }
    :global(.is-hidden) {
      display: none !important;
    }
  }
}

// 视频播放控制组件样式
.videoControls {
  background: rgba(0, 0, 0, 0.8);
  padding: 12px 16px;
  border-radius: 8px;
  margin: 8px 0;
  
  .progressContainer {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    
    .timeDisplay {
      min-width: 45px;
      font-size: 12px;
      color: #e4e7f5;
      font-family: 'Noto Sans SC', sans-serif;
      
      .currentTime {
        color: #e4e7f5;
      }
      
      .totalTime {
        color: #888d92;
      }
    }
    
    .progressBar {
      flex: 1;
      height: 6px;
      background: rgba(68, 68, 72, 1);
      border-radius: 3px;
      position: relative;
      cursor: pointer;
      
      .progressFill {
        height: 100%;
        background: rgba(120, 120, 120, 1);
        border-radius: 3px;
        transition: width 0.1s ease;
      }
      
      .progressThumb {
        position: absolute;
        top: 50%;
        transform: translate(-50%, -50%);
        width: 4px;
        height: 8px;
        background: linear-gradient(135deg, #FFFFFF 0%, rgba(225, 244, 255, 0.45) 100%);
        border-radius: 2px;
        cursor: pointer;
        transition: left 0.1s ease;
        
        &:hover {
          transform: translate(-50%, -50%) scale(1.2);
        }
      }
      
      &:hover .progressThumb {
        transform: translate(-50%, -50%) scale(1.1);
      }
    }
  }
  
  .controlButtons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    
    .controlBtn {
      background: rgba(255, 255, 255, 0.1);
      border: none;
      color: #e4e7f5;
      padding: 8px;
      border-radius: 6px;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: all 0.2s ease;
      width: 26px;
      height: 26px;
      
      &:hover {
        background: rgba(255, 255, 255, 0.2);
        transform: scale(1.05);
      }
      
      &:active {
        transform: scale(0.95);
      }
      
      svg {
        width: 10px;
        height: 10px;
        &path {
          width: 100%;
          height: 100%;
        }
      }
    }
    
    .playBtn {
      background: rgba(255, 255, 255, 0.1);
      border: none;
      color: white;
      width: 26px;
      height: 26px;
      border-radius: 6px;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: all 0.2s ease;
      
      &:hover {
        background: rgba(255, 255, 255, 0.2);
        transform: scale(1.05);
      }
      
      &:active {
        transform: scale(0.95);
      }
      
      svg {
        width: 10px;
        height: 10px;
      }
    }
    
    .speedControl {
      .speedSelect {
        background: rgba(255, 255, 255, 0.1);
        border: 1px solid rgba(255, 255, 255, 0.2);
        color: #e4e7f5;
        padding: 6px 8px;
        border-radius: 4px;
        font-size: 12px;
        cursor: pointer;
        outline: none;
        
        &:hover {
          background: rgba(255, 255, 255, 0.15);
        }
        
        &:focus {
          border-color: #6633ee;
        }
        
        option {
          background: #2a2a2a;
          color: #e4e7f5;
        }
      }
    }
  }
}

// 上传区域样式
.uploadSection {
  width: 100%;
  height: 100%;
  background: rgba(100, 100, 100, 0.1);
  background-image: 
    /* 顶部 */
    linear-gradient(to right, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.2) 50%, transparent 50%),
    /* 右侧 */
    linear-gradient(to bottom, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.2) 50%, transparent 50%),
    /* 底部 */
    linear-gradient(to left, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.2) 50%, transparent 50%),
    /* 左侧 */
    linear-gradient(to top, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.2) 50%, transparent 50%);
    background-size: 
      10px 1px,   /* 顶部虚线 */
      1px 10px,   /* 右侧虚线 */
      10px 1px,   /* 底部虚线 */
      1px 10px;   /* 左侧虚线 */
        
    background-position: 
      top left,    /* 顶部位置 */
      top right,   /* 右侧位置 */
      bottom left, /* 底部位置 */
      top left;    /* 左侧位置 */
        
    background-repeat: 
      repeat-x, /* 顶部重复 */
      repeat-y, /* 右侧重复 */
      repeat-x, /* 底部重复 */
      repeat-y; /* 左侧重复 */
      border-radius: 4px;
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: var(--pointer);
  
  &:hover {
    border-color: #999;
    background: rgba(255, 255, 255, 0.02);
  }
  
  .uploadPlaceholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    
    .uploadIcon {
      width: 24px;
      height: 24px;
      opacity: 0.6;
    }
    
    .uploadText {
      font-size: 12px;
      color: #666;
      text-align: center;
    }
  }
}